add_to_hook('head_top', function() { global $base_taxonomy; global $post; if($base_taxonomy == 'post'){ if(isset($post)){ $value = $post->getExtraField('meta_keywords'); if($value){ echo ''; } } } }); if($base_taxonomy == 'tag'){ add_filter('meta_description', function($desc) { global $tag; if(isset($tag)){ $tag_meta_description = get_tag_extra_field($tag, 'meta_description'); if($tag_meta_description){ return $tag_meta_description; } } return $desc; }); }